//
//  StraightSection.h
//  Racing
//
//  Created by vy phan on 4/13/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Section.h"
#import "GameConstants.h"
#import "Vehicle.h"
#import "State.h"

@interface StraightSection : Section {
@private
	bool vertical;
}
-(id) initWithVertical:(bool)isVertical_ X:(int)x Y:(int)y;
-(bool) isVertical;
-(int) type;
-(BOOL) intersects:(Vehicle*)vehicle State:(State*)state;
-(void) checkCollision:(Vehicle*)vehicle State:(State*)state;
-(float) distanceToEnd:(Vehicle*)vehicle;
@end
